package com.xjrh.traintravel.collector.netty.command.upgrade;

import com.xjrh.traintravel.collector.netty.command.BaseCommand;

import java.io.Serializable;

/**
 * 设备升级数据
 *
 * @author snps
 * @create 2022-02-25 10:24
 * @describe
 **/
    public class UpgradeEquipmentData extends BaseCommand implements Serializable {

    private static final long serialVersionUID = 2940453089258109359L;


    /**
     * 升级设备类型
     *      1-前置
     *      2-DSP
     */
    private Integer equipmentType;

    /**
     * 前置类型
     *      1-I型
     *      2-II型
     */
     private Integer frontType;

    /**
     * RS485通道
     *      1-1通道
     *      2-2通道
     */
     private Integer rs485;


    /*****************************************
     * Getter and Setter
     */
    public Integer getEquipmentType() {
        return equipmentType;
    }

    public void setEquipmentType(Integer equipmentType) {
        this.equipmentType = equipmentType;
    }

    public Integer getFrontType() {
        return frontType;
    }

    public void setFrontType(Integer frontType) {
        this.frontType = frontType;
    }

    public Integer getRs485() {
        return rs485;
    }

    public void setRs485(Integer rs485) {
        this.rs485 = rs485;
    }


    @Override
    public String toString() {
        return "UpgradeEquipmentData{" +
                "equipmentType=" + equipmentType +
                ", frontType=" + frontType +
                ", rs485=" + rs485 +
                '}';
    }

}